package vo

type Page struct {
	Records    interface{} `json:"records"`
	PageNumber int         `json:"pageNumber"`
	PageSize   int         `json:"pageSize"`
	TotalPage  int64       `json:"totalPage"`
	TotalRow   int64       `json:"totalRow"`
}

func PageResult(list interface{}) (page *Page) {
	return &Page{
		Records: list,
	}
}
